package com.obas.access.business.service;

import java.util.List;

import com.ease.platform.access.service.AbstractParameterizedBeanIbatisAccessService;
import com.obas.model.business.Circuit;

public interface CircuitAccessService extends AbstractParameterizedBeanIbatisAccessService<Circuit> {

	List<Circuit> findLinkRecuisiveByUpperDeviceId(long upperDeviceId);

	List<Circuit> findLinkRecuisiveByLowerDeviceId(long lowerDeviceId);
	
	List<Circuit> findByAendDeviceIdZendDeviceId(long aendDeviceId, long zendDeviceId);
	
	List<Circuit> findByAendDeviceIdZendDeviceIds(long aendDeviceId, long[] zendDeviceIds);
	
	List<Circuit> findByZendDeviceIdAendDeviceIds(long zendDeviceId, long[] aendDeviceIds);

	List<Circuit> findByDeviceIds(long[] deviceIds);
	
	Circuit findUpperRouteByUserId(long customerId);
	
	List<Circuit> findLowerRouteByUserId(long customerId);
	
}
